package com.dm.cloud.auth.common.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
   * @author hcx
   * @type AuthClientDetails.java
   * @desc AuthClientDetails
   */

@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_AUTH_CLIENT_DETAILS")
@EqualsAndHashCode
@Schema(description = "AuthClientDetails")
public class AuthClientDetails {

      /** 主键 **/
      @Id
      @Schema(description = "主键")
      @Column(name = "client_id")
      private String clientId;
      /** 客户端密钥 **/ 
      @Schema(description = "客户端密钥")
      @Column(name = "client_secret")
      private String clientSecret;
      /** 范围 **/ 
      @Schema(description = "范围")
      @Column(name = "scope")
      private String scope;
      /** 支持的授权模式 **/ 
      @Schema(description = "支持的授权模式")
      @Column(name = "authorized_grant_types")
      private String authorizedGrantTypes;
      /** 开放访问的地址 **/
      @Schema(description = "开放访问的地址")
      @Column(name = "ALLOW_URL")
      private String allowUrl;

}
